//
//  SSSClearCacheManager.h
//  SSSAllPeopleBenefit
//
//  Created by Darker on 2017/2/25.
//  Copyright © 2017年 Darker. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface SSSClearCacheManager : NSObject

@property (nonatomic, assign) CGFloat cacheSize;

+ (instancetype)zd_sharedCache;

/*!
 *  计算单个文件大小
 *
 *  @param path path路径
 *
 *  @return 计算单个文件大小
 */
- (CGFloat)zd_fileSizeAtPath:(NSString *)path;

/*!
 *  计算目录大小
 *
 *  @param path path路径
 *
 *  @return 计算目录大小
 */
- (CGFloat)zd_folderSizeAtPath:(NSString *)path;

/*!
 *  缓存大小
 *
 *  @return 缓存大小
 */
- (CGFloat)zd_loadCacheSize;

/*!
 *  清除缓存
 */
- (void)zd_myClearCacheAction;

/*!
 *  清除缓存成功回调
 */
- (void)zd_clearCacheSuccess;

@end
